﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MQ.Core.Admin.Extensions.Mq
{
    public class RabbitOption
    {
        public string Uri { set; get; }
        public IConfiguration configuration;
        public RabbitOption(IConfiguration configuration)
        {
            this.configuration = configuration;
            var section=configuration.GetSection("RabbitConnection");
            section.Bind(this);
        }
    }
}
